LearnPress\Models\UserItems\UserCourseModel C

Total Complexity 109
Dependencies 15
Dependents 14
Total lines 808
Lines of code 474
Logical lines of code 315
Comment lines 211
Methods 27
Properties 2

Methods 27

Method Rating Maintainability Complexity Lines of code
calculate_course_results()
B
36 14 81
timestamp_remaining_duration()
A
48 10 34
evaluate_course_by_question()
A
44 9 46
evaluate_course_by_final_quiz()
A
44 9 45
can_finish()
A
48 9 31
can_retake()
S
53 7 24
evaluate_course_by_mark()
S
56 6 17
evaluate_course_by_questions()
S
56 6 17
get_item_attend()
S
51 4 27
count_items_completed()
S
52 4 24
find()
S
56 4 19
evaluate_course_by_quizzes_passed()
S
58 4 15
evaluate_course_by_lesson()
S
58 4 15
count_students()
S
55 3 20
get_last_user_course()
S
60 2 13
__construct()
S
72 2 6
has_enrolled_or_finished()
S
79 2 3
clean_caches()
S
62 1 11
get_graduation()
S
82 1 3
is_passed()
S
80 1 3
get_course_model()
S
79 1 3
get_retaken_count()
S
79 1 3
is_finished()
S
80 1 3
has_finished()
S
80 1 3
has_purchased()
S
80 1 3
has_enrolled()
S
80 1 3
count_item_completed()
S
91 1 2